package com.ming.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *@Author:何元才
 *@Desc:
 *@data:2021-05-05 22:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "book_return")
public class BookReturn implements Serializable {

    /**
     * 还书id
     */
    @TableId(value = "return_id", type = IdType.INPUT)
    private Integer returnId;

    /**
     * 借阅id
     */
    @TableField(value = "rent_id")
    private Integer RentId;

    /**
     * 图书id
     */
    @TableField(value = "book_id")
    private Integer bookId;

    /**
     * 操作员
     */
    @TableField(value = "rent_name")
    private String rentName;

    /**
     * 还书时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "return_time")
    private String returnTime;

    /**
     * 心得
     */
    @TableField(value = "mean")
    private String mean;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "create_time")
    private Date createTime;

}